package com.tensquare.friend.model;


import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;
import java.io.Serializable;

@Data
@Entity
@IdClass(Friend.class)
@Table(name = "tb_friend")
public class Friend implements Serializable {

    @Id
    private String userid;

    @Id
    private String friendid ;

    private String islike ;

    public Friend() {}

    public Friend(String userid, String friendid, String islike) {
        this.userid = userid;
        this.friendid = friendid;
        this.islike = islike;
    }

}
